<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Amaze UI Admin index Examples</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <script src="assets/js/echarts.min.js"></script>
    <link rel="stylesheet" href="assets/css/amazeui.min.css" />
    <link rel="stylesheet" href="assets/css/amazeui.datatables.min.css" />
    <link rel="stylesheet" href="assets/css/app.css">
    <script src="assets/js/jquery.min.js"></script>
    <link rel="stylesheet" href="assets/css/com.css" />
    <link rel="stylesheet" href="assets/timepicker/bootstrap.min.css" />
    <link rel="stylesheet" href="assets/css/jstree/jstree-style.min.css" />
    <script src="layer/layer.js"></script>
    <style>
        .tpl-content-wrapper{
            margin-left: 0px;
        }
        body{
            overflow-y: scroll;
        }
        .theme-white .widget {
		    padding: 10px 5px 13px;
		}
		.widget-body {
		    padding: 16px 5px;
		}
    </style>
</head>

<body data-type="widgets">
    <script src="assets/js/theme.js"></script>
    <div class="am-g tpl-g">
       

        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">
            <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-cf">数据统计</div>


                            </div>
                            <div class="widget-body  am-fr">

                                <div class="am-u-sm-12"  >
                                    <table width="100%" class="am-table am-table-striped tpl-table-black" id="example-r">
                                        <thead>
                                            
                                        </thead>
                                        <tbody>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <script src="assets/js/amazeui.min.js"></script>
    <script src="assets/js/amazeui.datatables.min.js"></script>
    <script src="assets/js/dataTables.responsive.min.js"></script>
    <script src="assets/js/app.js"></script>
    <script src="assets/js/indexjs/res_table.js"></script>
    <script>
	    var data={
		"2017-05-01":{
			"天津":[
				{CP供应商:"天华",产品名称:"基础包",产品价格:"30",产品销量:"130",总金额:"3900"},
				{CP供应商:"暴走汽车",产品名称:"基础包",产品价格:"30",产品销量:"50",总金额:"1500"},
				{CP供应商:"",产品名称:"",产品价格:"",产品销量:"",总金额:""}
			],
			"甘肃":[
				{CP供应商:"天华",产品名称:"基础包",产品价格:"30",产品销量:"130",总金额:"3900"},
				{CP供应商:"天华",CP供应商:"天华",产品名称:"基础包",产品价格:"30",产品销量:"50",总金额:"1500"},
				{CP供应商:"暴走汽车",产品名称:"天天童伴",产品价格:"30",产品销量:"50",总金额:"1500"},
				{CP供应商:"",产品名称:"",产品价格:"",产品销量:"",总金额:""}
			]
		},
		"2017-05-02":{
			"天津": [
				{CP供应商:"天华",产品名称:"基础包",产品价格:"30",产品销量:"125",总金额:"3750"},
				{CP供应商:"暴走汽车",产品名称:"基础包",产品价格:"30",产品销量:"48",总金额:"1440"},
				{CP供应商:"",产品名称:"",产品价格:"",产品销量:"",总金额:""}
			],
			"甘肃":[
				{CP供应商:"天华",产品名称:"基础包",产品价格:"30",产品销量:"142",总金额:"4260"},
				{CP供应商:"天华",产品名称:"基础包",产品价格:"30",产品销量:"48",总金额:"1440"},
				{CP供应商:"暴走汽车",产品名称:"天天童伴",产品价格:"30",产品销量:"71",总金额:"2730"},
				{CP供应商:"",产品名称:"",产品价格:"",产品销量:"",总金额:""}
			]
		}
	}
	var data_head=["地网分平台","CP供应商","产品名称","产品价格","产品销量","总金额","订购时间"];

     
    	table_list.init({
            el:"#example-r",
            data:data,
            data_head:data_head,
    	});

    </script>
</body>

</html>